package com.zhida.smartcontrol.utils;

import java.util.ArrayList;
import java.util.List;

public class MyUtils {
    public static String getBrightNess(String b) {
        int num = Integer.parseInt(b);
        String brightNess;
        switch (num) {
            case 1:
                brightNess = "100%";
                break;
            case 2:
                brightNess = "75%";
                break;
            case 3:
                brightNess = "50%";
                break;
            case 4:
                brightNess = "25%";
                break;
            default:
                brightNess = "0%";
                break;
        }
        return brightNess;
    }

}
